﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ChessServises
{
    [Serializable]
    public class Figure
    {
        public ChessFigure ChessPiece { get; set; }
        public Colour FigureColour { get; set; }
        public bool IsOnField { get; set; }
        public int XCoordinate { get; set; }
        public int YCoordinate { get; set; }

        public Figure(ChessFigure figure, int xCoordinate, int yCoordinate, Colour colour, bool isOnField = true)
        {
            this.ChessPiece = figure;
            this.XCoordinate = xCoordinate;
            this.YCoordinate = yCoordinate;
            this.FigureColour = colour;
            this.IsOnField = isOnField;
        }
    }
}